|
Zeller's congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian or Gregorian calendar date. It can be considered to be based on the conversion between Julian day and the calendar date. == Formula == For the Gregorian calendar, Zeller's congruence is : for the Julian calendar it is : where * ''h'' is the day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, ..., 6 = Friday) * ''q'' is the day of the month * ''m'' is the month (3 = March, 4 = April, 5 = May, ..., 14 = February) * ''K'' the year of the century (). * ''J'' is the zero-based century (actually ) For example, the zero-based centuries for 1995 and 2000 are 19 and 20 respectively (to not be confused with the common ordinal century enumeration which indicates 20th for both cases). NOTE: In this algorithm January and February are counted as months 13 and 14 of the previous year. E.g. if it is 2 February 2010, the algorithm counts the date as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format) For an ISO week date Day-of-Week ''d'' (1 = Monday to 7 = Sunday), use : 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Zeller's congruence」の詳細全文を読む スポンサード リンク
|